package dao;

import pojo.News;

import java.util.List;
import java.util.Map;

/**
 * @author 郝雷蒙
 * @Description
 * @date 2020/11/10 12:10
 */
public interface NewsDao {


    //浏览数
    public Integer updateViewCount(Integer count,Integer id);

      //查询
    public List<News> selectAllNews(Map<String,Object> params);
      //按条件搜索出来的数量
    public Integer selectNewsCount(Map<String,Object> params);



    //
    public News selectOneById(Integer id);




}
